#ifndef PLATEJUDGE_
#define PLATEJUDGE_

#include <iostream>  
#include <vector>  
#include <iterator>  
#include "opencv2/opencv.hpp"
#include "CCharacter.h"

typedef struct {
	Mat plateMat;
	float score;
	bool fMser;
} Plate;

class PlateJudge {
public:
	static PlateJudge* instance();
	int plateSetScore(Plate &plateStruct);
	int plateJudgeUsingNMS(const std::vector<Plate> &inVec, Plate &resultPlate);

private:
	PlateJudge();

	static PlateJudge* instance_;
	CvSVM svm_;
};

void deleteNotArea(Mat &inmat, Color color = UNKNOWN);

#endif
